---
id: dialog
title: Dialog
---

import { IconsStyle } from "@site/src/components/Docs_Icons";
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import CodeBlock from "@theme/CodeBlock";
import { BiInfoCircle } from "react-icons/bi";
import Usage from "../component_usage/Dialog.mdx";

<IconsStyle />

Dialogs inform users about a task and can contain critical information, require decisions, or involve multiple tasks.
You can wrap any component with a simple Dialog component to display quick information to the user.
Also receives all [Overlay](https://reactnativeelements.com/docs/components/overlay#props) props except `fullscreen`.

<div class="row inline-flex-center">
  <div class="col col--3">
    <h4>Import</h4>
  </div>
  <div class="col col--9">
    <CodeBlock>{`import { Dialog } from '@rneui/themed';`}</CodeBlock>
  </div>
  <div class="col col--3">
    <h4>
      Theme Key{" "}
      <a href="../customizing#using-themeprovider">
        <BiInfoCircle />
      </a>
    </h4>
  </div>
  <div class="col col--9">
    <CodeBlock>{`Dialog`}</CodeBlock>
  </div>
</div>

## Usage

<Usage />

## Props

:::note
Includes all [Overlay](overlay#props) props.
:::

<div class='table-responsive'>

| Name             | Type                                 | Default | Description                                               |
| ---------------- | ------------------------------------ | ------- | --------------------------------------------------------- |
| `children`       | ReactNode                            |         | Add Enclosed components.                                  |
| `onLongPress`    | GestureResponderEventHandler         |         | Called when a long-tap gesture is detected.               |
| `onPressIn`      | GestureResponderEventHandler         |         | Called when a touch is engaged before `onPress`.          |
| `onPressOut`     | GestureResponderEventHandler         |         | Called when a touch is released before `onPress`.         |
| `overlayStyle`   | View Style                           |         | Add additional styling to the internal Overlay component. |
| `pressableProps` | PressableProps except click handlers | `None`  |                                                           |

</div>
